home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / os2 / cchsr10b.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1996-10-11  |  1KB  |  34 lines

  1. /************************************************/
  2. /* Rexx Script to Create Color Chaser v1.x Icon */
  3. /* Color Chaser v1.x created by Scott Russell   */
  4. /* Install Script version 10-01-96              */
  5. /************************************************/
  6.  
  7. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  8. call SysLoadFuncs
  9.  
  10. /*** Set Vars. (Prog Name, Prog Source, OS/2 Boot Drive) ***********************************************/
  11.  
  12. ProgName = directory()||'\cchsr.exe'
  13. ProgFile = ''
  14. ProgPath = directory()
  15.  
  16. /*** Verify install paths ******************************************************************************/
  17.  
  18. rc = SysFileTree(ProgName,ProgCheck,'FO')
  19. if ProgCheck.0 = 0 then do
  20.   say '';say 'Error! - Please run the install program from the Color Chaser directory!';say ''
  21.   exit
  22.   end
  23.  
  24. /*** Create the Icon ***********************************************************************************/
  25.  
  26. call SysCls
  27. say ''
  28. say 'Creating an icon for Color Chaser v1.0b. Please wait...'
  29. say ''
  30. RC = SysCreateObject('WPProgram','Color Chaser v1.0b','<WP_DESKTOP>','EXENAME='||ProgName||';PARAMETERS='||ProgFile||';STARTUPDIR='||ProgPath||';MINIMIZED=NO;','R')
  31. if RC = 1 then say 'The icon was created!'
  32. else say 'An error occured and the icon was not created!'
  33. say ''
  34. exit